package com.sjp.myspring;

import com.sjp.demo.mvc.controller.DemoController;
import com.sjp.myspring.context.JPApplicationContext;
import com.sjp.myspring.context.support.JPWebApplicationContext;

public class Test {
    public static void main(String[] args) throws Exception {
        JPApplicationContext context = new JPWebApplicationContext("application.properties");
        System.out.println(context);

        //Object demoController = context.getBean("demoController");
        //System.out.println(demoController);
        Object demoController2 = context.getBean(DemoController.class);
        System.out.println(demoController2);
    }
}
